﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GGWorldCup.aspx.cs" Inherits="carinsurance_offline_worldcup_GGWorldCup" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="usrMobilePhone.ascx" TagName="usrPhoneNo" TagPrefix="uc10" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <base target="_self" />
    <link rel="stylesheet" type="text/css" href="css/worldcup-th.css" title="Contemporary" />
    <script src="includes/min.js" type="text/javascript"></script>

    <script src="includes/tracker.js" type="text/javascript"></script>

    <script src="includes/ValidationError-NEW.js" type="text/javascript"></script>

    <script src="includes/ValidationEffect-NEW.js" type="text/javascript"></script>

    <script src="includes/jquery-1.7.min.js" type="text/javascript"></script>
    
    <style type="text/css">
        a
        {
            cursor: pointer;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
    </asp:ScriptManager>
    <table width="998" height="886" border="0" align="center" cellpadding="0" cellspacing="0"
        class="bg-alert">
        <tr>
            <td width="855" height="886" valign="top" bgcolor="#FFFFFF">
                <table width="998" height="111" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="130" bgcolor="#fce40a">
                            <a href="#">
                                <img src="images/worldcup/logo_gluaygluay.png" width="130" height="83" alt="" /></a>
                        </td>
                        <td width="758" bgcolor="#fce40a">
                            <span class="header-heading">
                                <img src="<%=GetGlobalResourceObject("Football", "ImgHeader")%>" alt="" /></span>
                        </td>
                        <td width="110" bgcolor="#fce40a">
                            <table width="80" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="120" colspan="2">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <div class="radius-box box-ie">
                    <%=GetGlobalResourceObject("Football", "ReferaFriends")%>
                </div>
                <div class="box box-ie">
                    <div class="small-banner">
                        <div class="contest-heading-1">
                            <%=GetGlobalResourceObject("Football", "ContestDetails")%>
                        </div>
                        <p>
                            1.
                            <%=GetGlobalResourceObject("Football", "JustRefer3")%>
                        </p>
                        <p>
                            2.
                            <%=GetGlobalResourceObject("Football", "ContestEnd")%>
                        </p>
                        <p>
                            3.
                            <%=GetGlobalResourceObject("Football", "WinnerAnnounce")%>
                        </p>
                    </div>
                    <asp:UpdatePanel ID="uplMain" runat="server">
                        <ContentTemplate>
                            <div class="radius-box2" runat="server" id="divThanksYou" style="display:none">
                                <div class="thanks-msg">
                                    <%=GetGlobalResourceObject("Football", "ThankYouMessage1")%></div>
                                <div class="thanks-msg-2">
                                    <%=GetGlobalResourceObject("Football", "ThankYouMessage2")%></div>
                            </div>
                            <div runat="server" id="divContest">
                            <div class="radius-box2">
                                <div class="contest-heading-1">
                                    <%=GetGlobalResourceObject("Football", "EnterYourDetails")%>
                                </div>
                                <table width="854" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr class="form-text">
                                        <td width="287">
                                            <%=GetGlobalResourceObject("Football", "Name")%><span style="color:Red;">*</span>
                                        </td>
                                        <td width="285">
                                            <%=GetGlobalResourceObject("Football", "Email")%><span style="color:Red;">*</span>
                                        </td>
                                        <td width="282">
                                            <%=GetGlobalResourceObject("Football", "Mobile")%><span style="color:Red;">*</span>
                                        </td>
                                    </tr>
                                </table>
                                <table width="864" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="17" class="form-text">
                                            &nbsp;
                                        </td>
                                        <td width="287" style="height:45px; vertical-align:top">
                                            <asp:TextBox ID="txtUserName" MaxLength="50" runat="server" CssClass="txt-field-1"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvUserName" runat="server" CssClass="validationError"
                                                ValidationGroup="wcfootball" ErrorMessage="" Text="" ControlToValidate="txtUserName"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="revUserName" runat="server" ValidationGroup="wcfootball"
                                                ValidationExpression="^[\p{L}\d]*[^#$%^&*():/\.'^<>]*$" CssClass="validationError"
                                                ControlToValidate="txtUserName" ErrorMessage=""></asp:RegularExpressionValidator>
                                        </td>
                                        <td width="287" style="height:45px; vertical-align:top">
                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                <ContentTemplate>
                                                    <asp:TextBox ID="txtUserEmail" runat="server" MaxLength="80" CssClass="txt-field-1"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="rfvUserEmail" Text="" CssClass="validationError"
                                                        runat="server" ValidationGroup="wcfootball" ErrorMessage="" ControlToValidate="txtUserEmail"
                                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                                    <asp:RequiredFieldValidator ID="revUserEmail" runat="server" Text="" CssClass="validationError"
                                                        ValidationGroup="wcfootball" ErrorMessage="" ControlToValidate="txtUserEmail"
                                                        Display="Dynamic"></asp:RequiredFieldValidator>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                        <td width="273">
                                            <asp:TextBox ID="txtUserMobile" runat="server" CssClass="txt-field-1" MaxLength="10"
                                                ToolTip="Enter 10 digits phone number." /><span style="color:Red; font-size:small">ตัวอย่าง 0819876543</span><br />
                                            <asp:RequiredFieldValidator ID="rfvUserMobile" runat="server" CssClass="validationError"
                                                ValidationGroup="wcfootball" ErrorMessage="" Text="" ControlToValidate="txtUserMobile"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="revUserMobile" runat="server" ValidationGroup="wcfootball"
                                                ValidationExpression="0[8-9]\d{8}" CssClass="validationError" ControlToValidate="txtUserMobile"
                                                ErrorMessage=""></asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="contest-heading-2">
                                <%=GetGlobalResourceObject("Football", "EnterFriendsDetails")%></div>
                            <div class="radius-box3">
                                <table width="854" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr class="form-text">
                                        <td width="287">
                                            <%=GetGlobalResourceObject("Football", "Name")%><span style="color:Red;">*</span>
                                        </td>
                                        <td width="285">
                                            <%=GetGlobalResourceObject("Football", "Email")%><span style="color:Red;">*</span>
                                        </td>
                                        <td width="282">
                                            <%=GetGlobalResourceObject("Football", "Mobile")%><span style="color:Red;">*</span>
                                        </td>
                                    </tr>
                                </table>
                                <table width="864" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="17" class="form-text">
                                            1
                                            <asp:HiddenField ID="hidWCFriendID1" runat="server" />
                                        </td>
                                        <td width="287">
                                            <asp:TextBox ID="txtFriendName1" MaxLength="50" runat="server" CssClass="txt-field-2"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvFriendName1" runat="server" CssClass="validationError"
                                                ValidationGroup="wcfootball" ErrorMessage="" Text="" ControlToValidate="txtFriendName1"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="revFriendName1" runat="server" ValidationGroup="wcfootball"
                                                ValidationExpression="^[\p{L}\d]*[^#$%^&*():/\.'^<>]*$" CssClass="validationError"
                                                ControlToValidate="txtFriendName1" ErrorMessage=""></asp:RegularExpressionValidator>
                                        </td>
                                        <td width="287">
                                            <asp:UpdatePanel ID="uplConfirmEmail1" runat="server">
                                                <ContentTemplate>
                                                    <asp:TextBox ID="txtEmail1" runat="server" MaxLength="80" CssClass="txt-field-2"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="rfvEmail1" Text="" CssClass="validationError"
                                                        runat="server" ValidationGroup="wcfootball" ErrorMessage="" ControlToValidate="txtEmail1"
                                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator><br />
                                                    <asp:RequiredFieldValidator ID="revEmail1" runat="server" Text="" CssClass="validationError"
                                                        ValidationGroup="wcfootball" ErrorMessage="" ControlToValidate="txtEmail1" Display="Dynamic"></asp:RequiredFieldValidator>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                        <td width="273">
                                            <asp:TextBox ID="txtMobileNo1" runat="server" CssClass="txt-field-2" MaxLength="10"
                                                ToolTip="Enter 10 digits phone number." /><br />
                                            <asp:RequiredFieldValidator ID="rfvMobileNo1" runat="server" CssClass="validationError"
                                                ValidationGroup="wcfootball" ErrorMessage="" Text="" ControlToValidate="txtMobileNo1"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="revMobileNo1" runat="server" ValidationGroup="wcfootball"
                                                ValidationExpression="0[8-9]\d{8}" CssClass="validationError" ControlToValidate="txtMobileNo1"
                                                ErrorMessage=""></asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="form-text">
                                            2
                                            <asp:HiddenField ID="hidWCFriendID2" runat="server" />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtFriendName2" MaxLength="50" runat="server" CssClass="txt-field-2"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="revFriendName2" runat="server" ValidationGroup="wcfootball"
                                                ValidationExpression="^[\p{L}\d]*[^#$%^&*():/\.'^<>]*$" CssClass="validationError"
                                                ControlToValidate="txtFriendName2" ErrorMessage="" Display="Dynamic"></asp:RegularExpressionValidator>
                                        </td>
                                        <td>
                                            <asp:UpdatePanel ID="uplConfirmEmail2" runat="server">
                                                <ContentTemplate>
                                                    <asp:TextBox ID="txtEmail2" runat="server" MaxLength="80" CssClass="txt-field-2"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="revEmail2" Text="" CssClass="validationError"
                                                        runat="server" ValidationGroup="wcfootball" ErrorMessage="" ControlToValidate="txtEmail2"
                                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ></asp:RegularExpressionValidator>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMobileNo2" runat="server" CssClass="txt-field-2" MaxLength="10"
                                                ToolTip="Enter 10 digits phone number." />
                                            <asp:RegularExpressionValidator ID="revMobileNo2" runat="server" ValidationGroup="wcfootball"
                                                ValidationExpression="0[8-9]\d{8}" CssClass="validationError" ControlToValidate="txtMobileNo2"
                                                ErrorMessage=""></asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="form-text">
                                            3
                                            <asp:HiddenField ID="hidWCFriendID3" runat="server" />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtFriendName3" MaxLength="50" runat="server" CssClass="txt-field-2"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="revFriendName3" runat="server" ValidationGroup="wcfootball"
                                                ValidationExpression="^[\p{L}\d]*[^#$%^&*():/\.'^<>]*$" CssClass="validationError"
                                                ControlToValidate="txtFriendName3" ErrorMessage=""></asp:RegularExpressionValidator>
                                        </td>
                                        <td>
                                            <asp:UpdatePanel ID="uplConfirmEmail3" runat="server">
                                                <ContentTemplate>
                                                    <asp:TextBox ID="txtEmail3" runat="server" MaxLength="80" CssClass="txt-field-2"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="revEmail3" Text="" CssClass="validationError"
                                                        runat="server" ValidationGroup="wcfootball" ErrorMessage="" ControlToValidate="txtEmail3"
                                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator><br />
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMobileNo3" runat="server" CssClass="txt-field-2" MaxLength="10"
                                                ToolTip="Enter 10 digits phone number." /><br />
                                            <asp:RegularExpressionValidator ID="revMobileNo3" runat="server" ValidationGroup="wcfootball"
                                                ValidationExpression="0[8-9]\d{8}" CssClass="validationError" ControlToValidate="txtMobileNo3"
                                                ErrorMessage=""></asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                </table>
                                <table width="864" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 390; font-size: 13px;">
                                            <asp:CheckBox ID="chkAgree" runat="server" Checked="true" /><%=GetGlobalResourceObject("Football", "Iaccept")%>&nbsp;<%=GetGlobalResourceObject("Football", "TermsContion")%>&nbsp;<%=GetGlobalResourceObject("Football", "OfContest")%>
                                        </td>
                                        <td width="365" class="error-msg" style="text-align: right">
                                            <asp:Label ID="lblErrorMessage" runat="server"></asp:Label><asp:UpdateProgress AssociatedUpdatePanelID="uplMain"
                                                ID="updateProgress3" DynamicLayout="false" DisplayAfter="0" runat="server">
                                                <ProgressTemplate>
                                                    <div>
                                                        <img alt="Loading" src="images/worldcup/small_loading.gif" />
                                                    </div>
                                                </ProgressTemplate>
                                            </asp:UpdateProgress>
                                        </td>
                                        <td style="width: 10;">
                                            &nbsp;
                                        </td>
                                        <td width="99">
                                            <%--<a id="aSubmit" runat="server" onserverclick="btnSubmit_Click">
                                                <img src="<%=GetGlobalResourceObject("Football", "ImgSubmitBtn")%>" width="82" height="30"
                                                    alt="" /></a>--%>
                                            <asp:ImageButton ID="btnSubmit" runat="server" CssClass="submit-btn" ImageUrl=""
                                                OnClick="btnSubmit_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <table width="998" height="54" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="855" height="54" bgcolor="#000000" class="win-prizes-heading-2" style="text-align: center">
                            <%=GetGlobalResourceObject("Football", "Prizes")%>
                        </td>
                    </tr>
                </table>
                <table width="998" height="54" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="855" height="365" valign="top" bgcolor="#FFFFFF" style="text-align: left">
                            <img src="<%=GetGlobalResourceObject("Football", "ImgPrize")%>" width="998" height="365"
                                alt="" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
    <script language="javascript" type="text/javascript">
        //var para = window.dialogArguments;
        //if (!((para == undefined || para == null) ? true : false))
        //    $("#TextBoxName").val(para);
        function ReturnParentPage(msg) {
            window.returnValue = msg;
            this.close();
        }
    </script>
</body>
</html>
